/*
* 指标体系 模块路由
* */
const layout = () => import("@/views/layout");
// 两链管理
const twoChains = () => import("@/views/targetSystem/twoChainsManage/twoChains");
const chainsList = () => import("@/views/targetSystem/twoChainsManage/chainsList");
// 目标标准管理
const level = () => import("@/views/targetSystem/targetManage/level");
const levelList = () => import("@/views/targetSystem/targetManage/levelList");
// 我的目标标准
const myTarget = () => import('@/views/targetSystem/myTargetManage/myTarget');
const myTargetList = () => import('@/views/targetSystem/myTargetManage/myTargetList');
// 目标标准审核
const targetCheck = () => import('@/views/targetSystem/targetCheck/targetCheck');
const targetCheckList = () => import('@/views/targetSystem/targetCheck/targetCheckList');
// 目标标准查询
const query = () => import('@/views/targetSystem/targetQuery/query');
const queryList = () => import('@/views/targetSystem/targetQuery/queryList');
// 标准管理
const standardManage = () => import('@/views/targetSystem/standardManage/standardManage');
const standardManageList = () => import('@/views/targetSystem/standardManage/standardManageList');

export default {
    path: '/target',
    component: layout,
    name: 'targetIndex',
    meta:{
        title:'指标体系',
        auth: true,
        id: ''
    },
    children: [
        {
            path: 'twoChains',
            component: twoChains,
            name: 'twoChains',
            meta:{
                title:'两链管理',
                auth: true,
                id: ''
            }
        },
        {
            path: 'chainsList',
            component: chainsList,
            name: 'chainsList',
            meta:{
                title:'两链管理',
                auth: true,
                id: ''
            }
        },
        {
            path: 'standard',
            component: layout,
            name: 'layout',
            meta:{
                title:'模板管理',
                auth: true,
                id: ''
            },
            children: [
                {
                    path: 'Level/:type',
                    component: level,
                    name: 'standardLevel',
                    meta:{
                        title:'学校层',
                        auth: true,
                        id: '',
                        activeMenu: 'target/standard'
                    }
                },
                {
                    path: 'levelList/:type',
                    component: levelList,
                    name: 'standardLevelList',
                    meta:{
                        title:'学校层',
                        auth: true,
                        id: '',
                        activeMenu: 'target/standard'
                    }
                }
            ]
        },
        {
            path: 'myTarget',
            component: layout,
            name: 'myTarget',
            meta:{
                title:'我的目标标准',
                auth: true,
                id: ''
            },
            children: [
                {
                    path: 'level/:type',
                    component: myTarget,
                    name: 'myTargetLevel',
                    meta:{
                        title:'学校层',
                        auth: true,
                        id: ''
                    }
                },
                {
                    path: 'levelList/:type',
                    component: myTargetList,
                    name: 'myTargetLevelList',
                    meta:{
                        title:'学校层',
                        auth: true,
                        id: ''
                    }
                }
            ]
        },
        {
            path: 'check',
            component: layout,
            name: 'check',
            meta:{
                title:'目标标准审核',
                auth: true,
                id: ''
            },
            children: [
                {
                    path: 'level/:type',
                    component: targetCheck,
                    name: 'checkLevel',
                    meta:{
                        title:'学校层',
                        auth: true,
                        id: ''
                    }
                },
                {
                    path: 'levelList/:type',
                    component: targetCheckList,
                    name: 'checkLevelList',
                    meta:{
                        title:'学校层',
                        auth: true,
                        id: ''
                    }
                }
            ]
        },
        {
            path: 'query',
            component: layout,
            name: 'query',
            meta:{
                title:'目标标准查询',
                auth: true,
                id: ''
            },
            children: [
                {
                    path: 'level/:type',
                    component: query,
                    name: 'queryLevel',
                    meta:{
                        title:'学校层',
                        auth: true,
                        id: ''
                    }
                },
                {
                    path: 'levelList/:type',
                    component: queryList,
                    name: 'queryLevelList',
                    meta:{
                        title:'学校层',
                        auth: true,
                        id: ''
                    }
                }
            ]
        },
        {
            path: 'standardManage',
            component: layout,
            name: 'standardManage',
            meta:{
                title:'标准管理',
                auth: true,
                id: ''
            },
            children: [
                {
                    path: 'level/:type',
                    component: standardManage,
                    name: 'standardManageLevel',
                    meta:{
                        title:'学校层',
                        auth: true,
                        id: ''
                    }
                },
                {
                    path: 'levelList/:type',
                    component: standardManageList,
                    name: 'standardManageLevelList',
                    meta:{
                        title:'学校层',
                        auth: true,
                        id: ''
                    }
                }
            ]
        }
    ]
}
